package com.event.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 问题列表
 * </p>
 *
 * @author event
 * @since 2021-10-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="QaQuestion对象", description="问题列表")
@JsonIgnoreProperties(ignoreUnknown = true)

public class QaQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问题ID")
    @TableId(value = "question_id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer questionId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "阅读量")
    private Integer views;

    @ApiModelProperty(value = "回复量")
    private Integer replys;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @ApiModelProperty(value = "最后回复时间")
    private Integer replytime;

    @ApiModelProperty(value = "发起人id")
    private Integer sponorid;

    @ApiModelProperty(value = "发起人头像")
    private String avatar;

    @ApiModelProperty(value = "背景图")
    private String replyContent;

    @ApiModelProperty(value = "点赞数")
    private Integer likes;

    @ApiModelProperty(value = "点踩数")
    private Integer notlikes;

    @ApiModelProperty(value = "鼓掌数")
    private Integer applaud;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "标签")
    private String type;

    @ApiModelProperty(value = "限制时间(单位：h)")
    private Integer limittime;

    @ApiModelProperty(value = "最新回复人昵称")
    private String replyOpenname;

    @ApiModelProperty(value = "最新回复人头像")
    private String replyAvatar;

    @ApiModelProperty(value = "图片1")
    private String picture1;

    @ApiModelProperty(value = "图片2")
    private String picture2;

    @ApiModelProperty(value = "是否通过审核")
    private Integer pass;

}
